<div class="span6">
    <fieldset>
        <div class="form-actions">
            <button class="btn btn-success" type="button" id="btn_add_media">
                <i class="icon-plus icon-white"></i> Добавить</button>
        </div>
    </fieldset>
</div>

{literal}
<script type="text/javascript">

$(document).ready(function(){
    var sBlock = $('#media_container').html();
    $('.span6:eq(1) div.form-actions').before(sBlock);
    $('a.close').addClass('hidden');
    $('#btn_add_media').click(function(){
        $('.span6:eq(1) .alert:last').after(sBlock);
        $('a.close:gt(0)').removeClass('hidden');
    });
});

</script>
{/literal}